package com.dayu.recovery.service;

import java.util.List;
import com.dayu.recovery.domain.RecoveryLoan;

/**
 * 暂借登记Service接口
 * 
 * @author HK
 * @date 2021-04-16
 */
public interface IRecoveryLoanService 
{
    /**
     * 查询暂借登记
     * 
     * @param loanId 暂借登记ID
     * @return 暂借登记
     */
    public RecoveryLoan selectRecoveryLoanById(Long loanId);

    /**
     * 查询暂借登记列表
     * 
     * @param recoveryLoan 暂借登记
     * @return 暂借登记集合
     */
    public List<RecoveryLoan> selectRecoveryLoanList(RecoveryLoan recoveryLoan);

    /**
     * 新增暂借登记
     * 
     * @param recoveryLoan 暂借登记
     * @return 结果
     */
    public int insertRecoveryLoan(RecoveryLoan recoveryLoan);

    /**
     * 修改暂借登记
     * 
     * @param recoveryLoan 暂借登记
     * @return 结果
     */
    public int updateRecoveryLoan(RecoveryLoan recoveryLoan);

    /**
     * 批量删除暂借登记
     * 
     * @param loanIds 需要删除的暂借登记ID
     * @return 结果
     */
    public int deleteRecoveryLoanByIds(Long[] loanIds);

    /**
     * 删除暂借登记信息
     * 
     * @param loanId 暂借登记ID
     * @return 结果
     */
    public int deleteRecoveryLoanById(Long loanId);

    /**
     * 批量新增
     * @param list 新增列表
     * @return 结果
     */
    public int addLoanList(List<RecoveryLoan> list);
}
